import request from '@/utils/request'

// 查询章节/讨论关联列表
export function listChapter_discuss(query) {
  return request({
    url: '/teach/chapter_discuss/list',
    method: 'get',
    params: query
  })
}

// 查询章节/讨论关联详细
export function getChapter_discuss(id) {
  return request({
    url: '/teach/chapter_discuss/' + id,
    method: 'get'
  })
}

// 新增章节/讨论关联
export function addChapter_discuss(data) {
  return request({
    url: '/teach/chapter_discuss',
    method: 'post',
    data: data
  })
}

// 修改章节/讨论关联
export function updateChapter_discuss(data) {
  return request({
    url: '/teach/chapter_discuss',
    method: 'put',
    data: data
  })
}

// 删除章节/讨论关联
export function delChapter_discuss(id) {
  return request({
    url: '/teach/chapter_discuss/' + id,
    method: 'delete'
  })
}
